<?php require 'Home/View/template/header.php'; ?>
    <br>
    <div class="alert alert-success" role="alert"><h3 align="center">修改房屋信息</h3></div>
        <br>
    <div class="jumbotron">
    <form method="post" action="index.php?c=house&m=housemod" enctype="multipart/form-data" class="form-horizontal">
    <input type="hidden" name="id" value="<?php echo $data['id']; ?>">
        <div class="form-group">
            <label class="col-md-offset-1 col-md-2 control-label">信息类型</label>
            <div class="col-md-7">
                <label class="radio-inline">
                    <input type="radio" name="type" value=0 <?php if($data['flag']==0) echo "checked" ?>>出租
                </label>
                <label class="radio-inline">
                    <input type="radio" name="type" value=1 <?php if($data['flag']==1) echo "checked" ?>>出售
                </label>
            </div>
        </div>
        <div class="form-group">
            <label for="InputHouseName" class="col-md-offset-1 col-md-2 control-label">房屋类型</label>
            <div class="col-md-7">
                <input type="text" name="housetype" class="form-control" value="<?php echo $data['housetype']; ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="InputPassword" class="col-md-offset-1 col-md-2 control-label">房屋地址</label>
            <div class="col-md-7">
                <input type="text" name="address" class="form-control" value="<?php echo $data['address']; ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="age" class="col-md-offset-1 col-md-2 control-label">建筑时长</label>
            <div class="col-md-7">
                <input type="text" name="builddate" class="form-control" value="<?php echo $data['builddate']; ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="tel" class="col-md-offset-1 col-md-2 control-label">房屋面积</label>
            <div class="col-md-7">
                <input type="text" name="area" class="form-control" value="<?php echo $data['area']; ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="tel" class="col-md-offset-1 col-md-2 control-label">房屋楼层</label>
            <div class="col-md-7">
                <input type="text" name="floor" class="form-control" value="<?php echo $data['floor']; ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="tel" class="col-md-offset-1 col-md-2 control-label">总楼层</label>
            <div class="col-md-7">
                <input type="text" name="allfloor" class="form-control" value="<?php echo $data['allfloor']; ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="tel" class="col-md-offset-1 col-md-2 control-label">所在区域</label>
            <div class="col-md-7">
                <input type="text" name="region" class="form-control" value="<?php echo $data['region']; ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="tel" class="col-md-offset-1 col-md-2 control-label">房屋售价</label>
            <div class="col-md-7">
                <input type="text" name="price" class="form-control" value="<?php echo $data['price']; ?>" >
                <h5 class="help-block">如是出租则不填</h5>
            </div>
        </div>
        <div class="form-group">
            <label for="tel" class="col-md-offset-1 col-md-2 control-label">房屋租价</label>
            <div class="col-md-7">
                <input type="text" name="rent" class="form-control" value="<?php echo $data['rent']; ?>" >
                <h5 class="help-block">如是出租则不填</h5>
            </div>
        </div>
        <div class="form-group">
            <label for="InputTextarea" class="col-md-offset-1 col-md-2 control-label">备   注</label>
            <div class="col-md-7">
                <textarea class="form-control" rows="3" value="<?php echo $data['demo']; ?>" name="demo"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="InputFile" class="col-md-1 control-label col-md-offset-2">房屋图片</label>
            <div class="col-md-7">
                <input type="file" name="pic">
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-12 text-center">
                <input type="submit" class="btn btn-warning" value="修改">&nbsp;&nbsp;
                <input type="reset" class="btn btn-primary" value="重置">
            </div>
        </div>
    </form>
    </div>
<?php require 'Home/View/template/footer.php'; ?>